package demo06创建对象内存分析;

public class Application {

    public static void main(String[] args) {


        Pet dog = new Pet();
        dog.name = "旺财";
        dog.age = 3;
        dog.shout();

        System.out.println(dog.name);
        System.out.println(dog.age);
    }
}
